<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/common/_container :: htmlhead"></head>
<body>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal">
			
			<input type="hidden" id="id" th:value="${parts.id}" />
				 <input type="hidden" id="partMindValue" th:value="${parts.partMind}" />
				  <input type="hidden" id="partStateValue" th:value="${parts.partState}" />
				<input type="hidden" id="areaIdValue" th:value="${parts.areaId}" />
				<div class="row">
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件名称 <span
								style="color: red">*</span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partName" type="text" th:value="${parts.partName}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>

					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件编码 <span
								style="color: red">*</span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partNo" type="text"  th:value="${parts.partNo}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>


					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">公园<span
								style="color: red">*</span>
							</label>
							<div class="col-sm-9">
								<select class="form-control" id="areaId">
									<option value="">---请选公园---</option>
									<option th:each="code,iterStat:${officeList}" th:value="${code.id}" th:text="${code.name}"></option>
								</select>
								<!-- <input class="form-control" id="areaId" type="text" /> -->
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">详细地址 <span
								style="color: red">*</span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partAddress" type="text"  th:value="${parts.partAddress}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<!-- <div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件类型 <span
								style="color: red">*</span>
							</label>
							<div class="col-sm-9">
								<select class="form-control" id="fback2">
									<option value="">-请选部件类型-</option>
									<option th:each="code,iterStat:${partTypeList}" th:value="${code.id}" th:text="${code.name}"></option>
								</select>
								<input class="form-control" id="fback2" type="text" />
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div> -->
					
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">经度 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="lonitude" type="text"  th:value="${parts.lonitude}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">纬度 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="latitude" type="text"  th:value="${parts.latitude}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">方向角 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partDoa" type="text"  th:value="${parts.partDoa}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">开放时间 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="openTime" type="text"  th:value="${parts.openTime}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件描述 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partDescription" type="text"  th:value="${parts.partDescription}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件型号 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partModel" type="text"  th:value="${parts.partModel}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">是否智能<span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<select class="form-control" id="partMind">
									<option value="0" selected="selected">否</option>
									<option value="1">是</option>
								</select>
								<!-- <input class="form-control" id="partMind" type="text" /> -->
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">智能类型 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<select class="form-control" id="mindType">
									<option value="">---请选类型---</option>
									<option th:each="code,iterStat:${mindTypes}" th:value="${code.key}" th:text="${code.value}"></option>
								</select>
								<!-- <input class="form-control" id="mindType" type="text" /> -->
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">责任单位 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partDirect" type="text"  th:value="${parts.partDirect}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>

					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">监理单位 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partSupervise" type="text"  th:value="${parts.partSupervise}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件状态 <span
								style="color: red"></span>
							</label>
							<div class="col-sm-9">
								<select class="form-control" id="partState">
									<option value="0" selected="selected">正常</option>
									<option value="1">借调，待审核</option>
								</select>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
					<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">部件父类 
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="partParentId" type="text"  th:value="${parts.partParentId}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>

				</div>
				<div class="col-sm-6">
						<div class="form-group">
							<label class="col-sm-3 control-label">备注 
							</label>
							<div class="col-sm-9">
								<input class="form-control" id="fback2" type="text" th:value="${parts.fback2}"/>
							</div>
						</div>
						<div class="hr-line-dashed"></div>
					</div>
				<div class="col-sm-6 b-r">                                       
                    <div class="form-group">
						<label class="col-sm-3 control-label head-scu-label">APP展示图标</label>
						<div class="col-sm-4">
							<div id="${id}PreId">
								<div>
									  <img width="100px" height="100px" id="avatarPreId" th:if="${parts.fback1==null}" src=""/> 
									<img width="100px" height="100px" id="avatarPreId" th:if="${parts.fback1!=null}" th:src="${parts.fback1}"/> 
								</div>
 
							</div>
						</div>
						<div class="col-sm-2">
							<div class="head-scu-btn upload-btn" id="avatarBtnId" onclick="PartsInfoDlg.selectFile()">
								<i class="fa fa-upload"></i>&nbsp; 
							</div>
						</div>
						<input type="file" id="fileUploadBtn" style="display:none" accept="gif,jpg,jpeg,bmp,png" onchange="PartsInfoDlg.uploadFile()"/>
						<input type="hidden" id="fback1" />  
					</div>
					<div class="hr-line-dashed"></div>
                </div>
			
			
				<div class="row btn-group-m-t">
				<div class="col-sm-10">
	               	 <button type="button" class="btn btn-info" id="ensure" onclick="PartsInfoDlg.editSubmit()" >
						   <i class="fa fa-check"></i>&nbsp;提交
					</button>
					<button type="button" class="btn btn-danger"  id="cancel" onclick="PartsInfoDlg.close()" >
						   <i class="fa fa-eraser"></i>&nbsp;取消
					</button>                   
                </div>
			</div>

		</div>

	</div>
</div>
<script th:src="@{/static/modular/part/parts/parts_info.js}"></script>
</body>
</html>
